<?php

namespace app\api\controller\v1;

use app\common\controller\Api;
use app\common\model\app\Navigation;

/**
 * app导航
 */
class App extends Api
{
    protected $noNeedLogin = ['navigation'];
    protected $noNeedRight = ['*'];


    /**
     * app导航
     */
    public function navigation() {
        $app = new Navigation();
        $list = $app->where(['status'=> 0])
            ->order('weigh desc')
            ->select();

        $this->success('导航列表', $list);
    }



}
